package service.configuration.xstream;

import java.util.List;

import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamAsAttribute;
import com.thoughtworks.xstream.annotations.XStreamImplicit;
import service.configuration.ITreeAssociationConfig;
import service.configuration.ITreeAssociationQueryConfig;


@XStreamAlias("tree")
public class TreeAssociationConfig implements ITreeAssociationConfig {

	@XStreamAsAttribute()
	String from;
	
	@XStreamImplicit(itemFieldName="query", keyFieldName="query")
	List<ITreeAssociationQueryConfig> queries;

	@Override
	public String getFrom() {
		return from;
	}

	@Override
	public List<ITreeAssociationQueryConfig> getQuery() {
		return queries;
	}


}
